﻿using Data.Tables;
using System.Data.Entity;

namespace Data
{
    public class DatabaseContext : DbContext
    {
        public DatabaseContext()
            : base("DefaultConnection")
        { }

        // Administration
        public DbSet<EmploymentType> EmploymentTypes { get; set; }
        public DbSet<RecurringHoliday> RecurringHolidays { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<UserPageAccess> UserPageAccesses { get; set; }
        public DbSet<WorkLocation> WorkLocations { get; set; }

        // Masterfile
        public DbSet<Employee> Employees { get; set; }
        public DbSet<EmployeeContract> EmployeeContracts { get; set; }
        public DbSet<Holiday> Holidays { get; set; }

        // Workspace
        public DbSet<Payroll> Payrolls { get; set; }
        public DbSet<PayrollDetail> PayrollDetails { get; set; }
        
        // Models
        public DbSet<UserProfile> UserProfiles { get; set; }
    }
}